import React from 'react'

export default function Header({checkedAll,setcheckall}) {
  return (
    <React.Fragment>
          <div className="td">
            <div className="checkall">
                <input type='checkbox'
                checked={checkedAll}
                onChange={(e)=>{setcheckall(e.target.checked)}}
                />全选
            </div>
                <div>商品名称</div>
                <div>商品价格</div>
                <div>商品数量</div>
                <div>商品小计</div>
                <div>操作</div>
        </div>
    </React.Fragment>
  )
}
